//
//  ThemeMacrosConst.h
//  OCBase
//
//  Created by Duncan on 2021/1/12.
//

#ifndef ThemeMacrosConst_h
#define ThemeMacrosConst_h

//不同屏幕尺寸字体适配
#define kScreenWidthRatio  (UIScreen.mainScreen.bounds.size.width / 375.0)
#define kScreenHeightRatio (UIScreen.mainScreen.bounds.size.height / 667.0)

#define kScreenRatioIsPhone (([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) ? kScreenWidthRatio : kScreenHeightRatio)

#define kFragmemtFloat(x)  ceilf((x) * kScreenRatioIsPhone)
#define kSizzleKapadate(a,b)  CGSizeMake(kFragmemtFloat(a), kFragmemtFloat(b))
#define kAdaptedFontSize(R)     [UIFont systemFontOfSize:kFragmemtFloat(R)]
#define kAdaptedMediumFontSize(R)     [UIFont systemFontOfSize:kFragmemtFloat(R) weight:UIFontWeightMedium]

// 设置加粗字体大小
#define kAdaptedBoldFontSize(R) [UIFont boldSystemFontOfSize:kFragmemtFloat(R)]

#endif /* ThemeMacrosConst_h */
